package com.yl.auth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yl.auth.entity.XinzifuliBean;
import com.yl.auth.entity.XinzimingxiBean;
import com.yl.auth.mapper.XinzifuliMapper;
import com.yl.auth.service.XinzifuliService;
import com.yl.common.result.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 王帅洋
 * @datetime 2023/6/28 16:01
 * @description 类对象
 */
@Service
public class XinzifuliServiceImpl extends ServiceImpl<XinzifuliMapper, XinzifuliBean> implements XinzifuliService {
    @Resource
    private XinzifuliMapper xinzifuliMapper;


    @Override
    public IPage<XinzifuliBean> findAll(Page<XinzifuliBean> page, XinzifuliBean xinzifuliBean) {
        IPage<XinzifuliBean> iPage = xinzifuliMapper.getAllpage(page, xinzifuliBean);
        return iPage;
    }

//    @Override
//    public XinzifuliBean getById(Long id) {
//        XinzifuliBean byId = xinzifuliMapper.getbyId(id);
//        return byId;
//    }

    @Override
    public XinzifuliBean getByid(Long id) {
        XinzifuliBean byId = xinzifuliMapper.getXinziId(id);
        return byId;
    }

    @Override
    public void updatexinzi(Integer id) {
        xinzifuliMapper.updatexinzi(id);
    }
}
